<template>
  <el-input-number v-model="count" :min="1"  label="描述文字" size="mini" @change="countChange"></el-input-number>
</template>
<script>
  export default {
    data() {
      return {
          count: this.initcount
      };
    },
    methods: {
         
      countChange(){

        this.$store.commit("updateGoodsCount", {

            id : this.goodsId,

            count : this.count

        })
    

      }

    },

    props: ["initcount" , "goodsId"]
 
  };
</script>

<style lang="scss" scoped>
    
     .el-input-number--mini{
         
         width: 110px;;
    }
</style>